import App from './App'
import { createSSRApp } from 'vue'
import * as Pinia from 'pinia';

export function createApp() {
  const app = createSSRApp(App)
  
  // 创建 Pinia 实例
  const pinia = Pinia.createPinia()
  
  // 安装 Pinia
  app.use(pinia)
  
  return {
    app,
    pinia  // 返回 pinia 实例以便需要时使用
  }
}